package com.ys.service.storage;

import com.ys.vo.R;

import java.math.BigDecimal;
import java.util.Date;

public interface TccStockControlService {

    /**
     * 子件出库
     */
	void stockOutSub(String guid, String dayAgo);

	/**
	 * 获取库存修改单号-新增用
	 */
	String getBidForAdd();
	
	/*
	 * 冻结
	 */
	void frozen(Long id, Integer num, Integer sourceType, String sourceBid, Long sourceId) throws Exception;
	
	/*
	 * 解冻
	 */
	void thaw(Long id, Integer num, Integer sourceType, String sourceBid, Long sourceId) throws Exception;

	/**
	 * 入库(包含流水)
	 */
	R inWithRunning(String rkBid,String chw,String productName,Integer productNum,String productCode,Integer productNumAll,BigDecimal purchasePrice,
						 BigDecimal purchaseTotalPriceAll,BigDecimal allotPrice,BigDecimal totalAllotPrice,
						 String vgsbm,Date drksj,
						 Integer isParent,String sourceBid,Integer sourceType, String remark, String companyVid,String assembleBid,Long sourceId) throws Exception;;

	/**
	 * 出库(包含流水)
	 */
	R outWithRunning(Long id,String remark,Integer numOut, String bidRelative,Integer sourceType,Long sourceId) throws Exception;;
}